<%@ page language="java" contentType="text/html; charset=UTF-8"
	import="com.baidu.ueditor.ActionEnter,com.cnpinxi.controller.admin.ueditor.UeditorContorller"
    pageEncoding="UTF-8"%>
<%@ page import="java.io.IOException" %>
<%@ page trimDirectiveWhitespaces="true" %>
<%

    request.setCharacterEncoding( "utf-8" );
	response.setHeader("Content-Type" , "text/html");
	
	String rootPath = application.getRealPath( "/" );
	String action=request.getParameter("action");
	System.out.println("action===========================?????"+action);
	if(action.equals("uploadimage")){
		out.write(new UeditorContorller().upLoad(request,response));
	}
	else{
		System.out.println("==============>>>"+action);
		try {
			out.write( new ActionEnter( request, rootPath ).exec() );
		} catch (IOException e) {

			e.printStackTrace();
		} catch (Exception ex) {
			System.out.println("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
			System.out.println(ex.getMessage());
			ex.printStackTrace();
		}
	}
	
%>